package com.ziyue.socket.bean;

import com.ziyue.socket.enums.RoleEnum;
import io.netty.channel.ChannelId;

import java.util.List;

/**
 * Created by wancheng on 2019/4/13.
 */
public class Member {
    /**
     * 房间号,方便快速查找房间
     */
    private Integer roomId;
    /**
     * socketId 方便快速查找
     */
    private ChannelId channelId;
    /**
     * 角色身份
     */
    private RoleEnum role;
    /**
     * 名字
     */
    private String name;
    /**
     * 手机号码
     */
    private String account;


    public Member() {
    }

    public Member(Integer roomId, ChannelId channelId, RoleEnum roleEnum) {
        this.roomId = roomId;
        this.channelId = channelId;
        this.role = roleEnum;
    }

    public Member(Integer roomId, ChannelId channelId, RoleEnum roleEnum, String name, String account) {
        this.roomId = roomId;
        this.channelId = channelId;
        this.role = roleEnum;
        this.name = name;
        this.account = account;
    }

    public ChannelId getChannelId() {
        return channelId;
    }

    public void setChannelId(ChannelId channelId) {
        this.channelId = channelId;
    }

    public RoleEnum getRole() {
        return role;
    }

    public void setRole(RoleEnum role) {
        this.role = role;
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }
}
